package com.example.hello;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.lang.reflect.InvocationTargetException;

@SpringBootApplication
public class HelloApplication {

    public static void main(String[] args)  {
        System.out.println("全新的test分支");
        System.out.println("---------------------master分支 222---------------------- ");
    }

}

class Dog{
    private String name;
    public void shout(){
        System.out.println("miao~");

    }

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                '}';
    }
}
class User{
    private int id;
    private int age;
    private String name;
    private Dog mydog;

    public User() {
    }

    public Dog getDDog() {
        return mydog;
    }

    public void setDog(Dog dog1) {
        this.mydog = dog1;
    }

    public User(int id, int age, String name) {
        this.id = id;
        this.age = age;
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", age=" + age +
                ", name='" + name + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }
}